package com.handpay.zztong.hp.swiper.ic;

import java.util.HashMap;

public class CUPMobile
{
	private static final HashMap<Integer,String> elementsIS = new HashMap<Integer,String>();
//	private static final HashMap<String,Integer> elementsSI = new HashMap<String,Integer>();
	static
	{
		//1支付应用名称
		elementsIS.put(1,"cupMobile:application");
        //2版本号
        elementsIS.put(2,"cupMobile:version");
        //3交易类型
        elementsIS.put(3,"cupMobile.transaction:type");
        //4交易提交时间
        elementsIS.put(4,"cupMobile.transaction.submitTime");
        //5商户代码
        elementsIS.put(5,"cupMobile.transaction.merchant:id");
        //6商户名称
        elementsIS.put(6,"cupMobile.transaction.merchant:name");
        //7商户国家代码
        elementsIS.put(7,"cupMobile.transaction.merchant:country");
        //8子商户/终端代码
        elementsIS.put(8,"cupMobile.transaction.terminal:id");
        //9订单号
        elementsIS.put(9,"cupMobile.transaction.order:id");
        //10清算日期
        elementsIS.put(10,"cupMobile.transaction.settleDate");
        //11交易金额
        elementsIS.put(11,"cupMobile.transaction.transAmount");
        //12交易币种
        elementsIS.put(12,"cupMobile.transaction.transAmount:currency");
        //13扣账金额
        elementsIS.put(13,"cupMobile.transaction.billAmount");
        //14扣账币种
        elementsIS.put(14,"cupMobile.transaction.billAmount:currency");
        //15扣账汇率
        elementsIS.put(15,"cupMobile.transaction.billAmount:convertRate");
        //16账户1
        elementsIS.put(16,"cupMobile.transaction.accountNumber1");
        //17个人身份标识码
        elementsIS.put(17,"cupMobile.transaction.pin");
        //19应答码
        elementsIS.put(19,"cupMobile.transaction.responseCode");
        //20原始交易提交时间
        elementsIS.put(20,"cupMobile.transaction.origSubmitTime");
        //24交易流水号
        elementsIS.put(24,"cupMobile.transaction.transSerialNumber");
        //25磁道2数据
        elementsIS.put(25,"cupMobile.transaction.track2Data");
        //26磁道3数据
        elementsIS.put(26,"cupMobile.transaction.track3Data");
        //27磁道2数据
        elementsIS.put(27,"cupMobile.transaction.cardholderIdInfo");
        //28终端芯片序列号
        elementsIS.put(28,"cupMobile.transaction.cardSerialNumber");
        //29CMSP保留使用
        elementsIS.put(29,"cupMobile.transaction.cmspReserved");
        //30账户余额
        elementsIS.put(30,"cupMobile.transaction.accountBalance");
        //31账户余额币种
        elementsIS.put(31,"cupMobile.transaction.accountBalance:currency");
        //32电子钱包数据
        elementsIS.put(32,"cupMobile.transaction.upCashData");
        //33帐户2
        elementsIS.put(33,"cupMobile.transaction.accountNumber2");
        //34卡有效期
        elementsIS.put(34,"cupMobile.transaction.expireDate");
        //35服务信息
        elementsIS.put(35,"cupMobile.transaction.serviceInfo");
        //36动态密钥数据
        elementsIS.put(36,"cupMobile.transaction.dynamicKeyData");
        //37安全载体类型
        elementsIS.put(37,"cupMobile.securityChipTp");
        //38SP代码
        elementsIS.put(38,"cupMobile.transaction.SpId");
        //39卡片序列号
        elementsIS.put(39,"cupMobile.transaction.ICNumber");
        //40系统支持方
        elementsIS.put(40,"cupMobile.transaction.SysProvide");
        //41原交易流水号
        elementsIS.put(41,"cupMobile.transaction.OrgTransSerNo");
        //42信用卡账户余额
        elementsIS.put(42,"cupMobile.transaction.creditAcctBal");
        //43信用卡账户余额币种
        elementsIS.put(43,"cupMobile.transaction.creditAcctBal:currency");
        //251借贷记应用数据
        elementsIS.put(251,"cupMobile.transaction.DCData");
        //252商户摘要数据
        elementsIS.put(252,"cupMobile.merchantAuthentication.digest");
        //253商户数字签名
        elementsIS.put(253,"cupMobile.merchantAuthentication.signature");
        //254发送方数字签名
        elementsIS.put(254,"cupMobile.senderSignature");
        //255报文鉴别码
        elementsIS.put(255,"cupMobile.mac");

//        Iterator<Entry<Integer, String>> iter = elementsIS.entrySet().iterator();
//        while (iter.hasNext())
//        {
//			Map.Entry<Integer, String> entry = (Map.Entry<Integer, String>) iter.next();
//            Integer key = entry.getKey();
//            String value = entry.getValue();
//            elementsSI.put(value,key);
//        }
    }
	
	public static String getElement(int key)
    {
        return elementsIS.get(key);
    }

//    public static int getElement(String key)
//    {
//        return elementsSI.get(key);
//    }
}
